{% extends "main.html" %}

{% block title %}{{ _("Search by tag") }}{% end %}

{% block searchtagtext %}{{ s_tag }}{% end %}

{% block body %}
<div>
    {% if posts %}
    {% for post in posts %}
        <div>
            <a href="/blog/postview/{{ post['_id'] }}">{{ post['title'] }}</a> 
            ( {{ locale.format_date(post['time'], full_format=True, shorter=False) }} )
        </div>
        <hr>
    {% end %}
    {% else %}
        <div>{{ _("Topic with this tag not found") }}</div>
    {% end %}
</div>
{% end %}